﻿<div id="dialog-delete-confirm" title="Delete Alert" style="height:50px;">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
</div>



<script>
    $(document).ready(function () {
        $("#dialog-delete-confirm").dialog({
            autoOpen: false,
            resizable: false,
            height: 200,
            width: 352,
            modal: true,
            open: function () {

            },
            buttons: {
                OK: function () {
                    nGbCurrentPage = $("#sl-gd-page-no-id").val();
                    // Grid GdDestroy to distroy the previous grid
                    if (GdDestroy(true)) {
                        GdDelete(strModuleName, $(this).data('Ids'));
                    }

                    $(this).dialog("close");
                },
                Cancel: function () {
                    UnCheckAllRows();
                    $(this).dialog("close");
                }
            },
            close: function () {

            }
        });
    });

</script>